import request from "@/utils/request";
import { UserForm, UserInfo, UserPageVO, UserQuery } from "./model";

const USER_BASE_URL = "/grid-api/grid";

class UserAPI {
  /**
   * 登录成功后获取用户信息（昵称、头像、权限集合和角色集合）
   *
   * @returns 用户信息
   */
  static getInfo() {
    return request<any, any>({
      url: `${USER_BASE_URL}/getUserInfo`,
      method: "get",
    });
  }
}

export default UserAPI;
